import './App.css';
import { HashRouter as Router, Switch, Route, useHistory } from 'react-router-dom';
import SignIn from './pages/SignIn';
import PrivateRoute from './shared/PrivateRoute';
import Tenants from './pages/Tenants';

function App() {
  const history = useHistory();
  return (
    <Router history={history}>
      <Switch>
        <Route exact path="/login">
          <SignIn></SignIn>
        </Route>
        <PrivateRoute exact path="/">
          <Tenants></Tenants>
        </PrivateRoute>
      </Switch>
    </Router>
  );
}

export default App;
